package com.jiangnan;

import com.jiangnan.constants.ThemeStyle;
import com.jiangnan.view.HomeView;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.swing.*;

@SpringBootApplication(scanBasePackages = {"com.jiangnan"})
public class App {
    public static void main(String[] args) {
        //设置主题
        try {
            UIManager.setLookAndFeel(ThemeStyle.defaultStyle);
        } catch (Exception e) {
            e.printStackTrace();
        }
        SwingUtilities.invokeLater(HomeView::new);
        //启动spring
        SpringApplication.run(App.class, args);
    }
}
